from django.conf.urls.defaults import *
from os.path import *
from poetry.views import *

urlpatterns = patterns('',
    # Example:
    # (r'^baudlr/', include('baudlr.foo.urls')),

    # Uncomment this for admin:
#     (r'^admin/', include('django.contrib.admin.urls')),
  (r'^i18n/', include('django.conf.urls.i18n')),
  (r'^yaml/(?P<path>.*)$', 'django.views.static.serve', {'document_root' : dirname(__file__) + '/yaml'}),
  (r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root' : dirname(__file__) + '/css'}),
  (r'^baudlr/add_poem', add_poem),
  (r'^baudlr/list_poems', list_poems),
)
